The Design Notes API > The Design Notes C API > BOOL FilePathToLocalURL()

 

BOOL FilePathToLocalURL()

Description

Converts the specified local drive path to a file:// URL.

Arguments

const char* drivePath, char* localURLBuf, int localURLMaxLen

The first argument is a string containing the full drive path.
The second argument is the buffer where the file:// URL should be stored.
The third argument is the maximum size of localURLBuf.

Returns

A Boolean value indicating whether the operation was successful; stores the file:// URL in localURLBuf.